
parse_git_branch() {
	ref=$(git symbolic-ref HEAD 2> /dev/null) || return;
    echo "("${ref#refs/heads/}")";
}

export PS1="\[\e[0m\][\u@\h \[\e[1;32m\]\W\[\e[0m\]]\[\e[1;36m\]\$(parse_git_branch)\[\e[0;33m\]\$ \[\e[0m\]" 

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions

export EDITOR='vim'

alias cddev='cd ~/code/dev/'
alias cdalpha='cd ~/code/alpha'
alias bi='cd ~/code/dev/bi'
alias crm='cd ~/code/dev/crm'
alias bi-chart='cd ~/code/dev/bi-chart'
alias bi-report='cd ~/code/dev/bi-report'
alias bi-xkcharts='cd ~/code/dev/bi-xkcharts'
alias yd='cd ~/code/test/yd && npm start'
alias fxiaoke='cd ~/code/test/fxiaoke && npm start'


export PATH=/home/wxl/node/node-v8.9.4-linux-x64/bin/:$PATH
export http_proxy=''
export https_proxy=''
export ftp_proxy=''
export socks_proxy=''

# set -o vi
